package com.hotel.service;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.hotel.common.pojo.Room;
import com.hotel.mapper.RoomMapper;

@Service
public class roomServiceImpl implements roomService {

	@Autowired
	private RoomMapper rm=null;
	
	

	@Override
	public List<Room> queryRoom(String roomtype) {
		return rm.queryRoomByRTP(roomtype);
		
	}

	@Override
	 public Room queryOneRoom(String id) {
	  return rm.selectRoom(id);
	 }
	
}
